package com.hwrt.hellomaven.dao;

import com.hwrt.hellomaven.entity.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.springframework.stereotype.Repository;

@Repository
public interface IUserDao {

    @Insert("insert into student values (#{username}, #{age})")
    void addUser(User user);

    @Delete("delete from student where username = #{username} and age = #{age}")
    void deleteUser(User user);
}
